package com.gc.server.service;

import com.gc.server.entity.GoodsRecordEntity;
import com.gc.server.entity.TodoEntity;
import com.yf.service.BaseService;

import java.util.List;

/**
 * 业务员物料消费Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Mar 10 11:17:45 CST 2020
 */
public interface GoodsRecordService extends BaseService<GoodsRecordEntity>{


    /**

     List<GoodsRecordVo> queryListVo(GoodsRecordVo goodsRecordVo);

        GoodsRecordVo getVo(Long id);

     **/

   /***********BACK***********/

    /***********API***********/


    /**
     * 记录物料
     * @param userId
     * @param todoId
     * @param goodsId
     * @param numbers
     */
    void record(Long userId,Long todoId,Long[] goodsIds, Integer[] numbers);

    /**
     * 找出日程所有的物料记录
     * @param toId
     * @return
     */
    List<GoodsRecordEntity> findByToDoId(Long toId);



}
